package geowiki.data;

import java.util.List;

import processing.core.PApplet;

/**
 * This extracts places.
 * 
 * This abstract class does not implement a specific extraction mechanism.
 * It decouples the specification from the implementation, i.e. if we want to extract places
 * via another library, we simply could create another PlaceExtractor.
 */
public abstract class PlaceExtractor {

	protected final PApplet p;

	public PlaceExtractor(PApplet p) {
		this.p = p;
	}

	public abstract List<Place> getPlaces(String content);

	public abstract List<Place> getPlacesFromURL(String url);

}
